<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-bargain-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">砍价活动名称：</label>
				<div class="col-sm-8">
					<input id="actName" name="actName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动描述：</label>
				<div class="col-sm-8">
					<input id="actDetail" name="actDetail" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动规则：</label>
				<div class="col-sm-8">
					<input id="actRule" name="actRule" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动开始时间：</label>
				<div class="col-sm-8">
					<input id="begainTime" name="begainTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label"> 活动结束时间：</label>
				<div class="col-sm-8">
					<input id="endTime" name="endTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品数量：</label>
				<div class="col-sm-8">
					<input id="productNum" name="productNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品单位：</label>
				<div class="col-sm-8">
					<input id="productUnit" name="productUnit" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品名称：</label>
				<div class="col-sm-8">
					<input id="productName" name="productName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品价格：</label>
				<div class="col-sm-8">
					<input id="productPrice" name="productPrice" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品图片：</label>
				<div class="col-sm-8">
					<input id="productImg" name="productImg" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否关注用户参与：</label>
				<div class="col-sm-8">
					<input id="foucsUserCanJoin" name="foucsUserCanJoin" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">展示比例：</label>
				<div class="col-sm-8">
					<input id="showRate" name="showRate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品剩余数量：</label>
				<div class="col-sm-8">
					<input id="productRemainNum" name="productRemainNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">砍价最低金额：</label>
				<div class="col-sm-8">
					<input id="cutMinPrice" name="cutMinPrice" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">模版简称：</label>
				<div class="col-sm-8">
					<input id="template" name="template" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="shortUrl" name="shortUrl" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">入口地址：</label>
				<div class="col-sm-8">
					<input id="hdurl" name="hdurl" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">对应微信平台原始id：</label>
				<div class="col-sm-8">
					<input id="jwid" name="jwid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动编码：</label>
				<div class="col-sm-8">
					<input id="projectCode" name="projectCode" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "bargain/bargain"
		$("#form-bargain-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-bargain-add').serialize());
	        }
	    }
	</script>
</body>
</html>
